unit UFinish;

interface

uses SysUtils, Classes, Math, UMapObjekte, UPictureName;

type
  TFinish = class(TMapObject) // 6
  private
  public
    constructor Create(Id: integer); Override;
    function getCollisionAtPixel(Game: TObject; X, Y: integer): integer;
      Override;
  end;

implementation

uses UGame, UPlayer;
{ TFinish }

constructor TFinish.Create(Id: integer);
begin
  self.Id := Id;
  self.Num := 6;
  FPictureName := b_Finish;
  self.affgravity := false;
end;

function TFinish.getCollisionAtPixel(Game: TObject; X, Y: integer): integer;
begin
  result := 11;
end;

end.
